<template>
  <div id="common">
    <h3>这是一个公共组件</h3>
    <button @click="handleClick">test</button>
  </div>
</template>

<script>
export default {
  name: 'HelloWorld',
  methods:{
    handleClick(){
      alert('test');
    }
  }
}
</script>

<style scoped>
#common{
  background: #999;
}
</style>